<?php
	$raiz = $_SERVER['DOCUMENT_ROOT'];
	include_once($raiz . '/connections/banco.inc');
	include_once($raiz . '/classes/CriarObjeto.inc');
	include_once($raiz . '/classes/Cabecalho.inc');
	
	$cabecalho = new Cabecalho();
	$cabecalho->setCabecalho();

	$x = new CriarObjeto();
	$x->setObjTabela('cliente');
	
	$arquivo = 'teste.php';
	
	/*Abrindo o arquivo*/
    $arquivo = fopen($arquivo, "w");
    
	/*Gravando no arquivo*/
    fwrite($arquivo, $cabecalho->getCabecalho());
    fwrite($arquivo, $x->executeCriarObjeto($x->getObjTabela()));
?>